<%@ page contentType="text/html; charset=UTF-8"%>
<%@ page pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>
<!DOCTYPE html>
<html>
<head>
<style>
.error {
	color: #ff0000;
}

.errorblock {
	color: #000;
	background-color: #ffEEEE;
	border: 3px solid #ff0000;
	padding: 8px;
	margin: 16px;
}
</style>

<c:url value="/css/myCssFile.css" var="cssURL" />
<c:url value="/img/logo.jpg" var="logoURL" />
<c:url value="/img/auth.png" var="authURL" />
<link rel="stylesheet" type="text/css" media="screen" href="${cssURL}" />
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>page d'authentification</title>
</head>
<body>
	<div id="BanBox">
		<img src="${logoURL}" />
	</div>
	<div class="picBox">
		<img src="${authURL}" class="picFit" />
		<div id="authSpaceBox">
			<p id="authSpace">Espace authentification</p>
		</div>
	</div>

	<div class="box conx">
		<div id="logPass">

			<form:form method="POST" commandName="user">
				<form:errors path="*" cssClass="errorblock" element="div" />
				<div>
					<div>
						<p class="connx">identifiant</p>
					</div>
					<div class="centerIt">
						<form:input path="login" />
						<!-- <form:errors path="login" cssClass="error" />-->
					</div>
				</div>
				<div>
					<div>
						<p class="connx">mot de passe</p>
						<!-- <form:errors path="password" cssClass="error" />-->
					</div>

					<div class="centerIt">
						<form:password path="password" />
					</div>
					<div id="submit">
						<input type="submit" value="connexion" class="common_b blue">
					</div>
				</div>
			</form:form>
		</div>

	</div>
	<div class="footer">
		<div>
			<p id="copyright">
				copyright &copy;
				<?php echo date("Y", time()); ?>
			</p>
		</div>
	</div>
</body>
</html>
